import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

export const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'redis',
      keepAlive: true,
      order: 2000,
      title: $t('redis.title'),
    },
    name: 'Mes/dv',
    path: '/mes/dv',
    children: [
      {
        meta: {
          title: $t('redis.one'),
        },
        name: 'Machinerytype',
        path: 'machinerytype',
        component: () => import('#/views/mes/dv/machinerytype/index.vue'),
      },
      {
        meta: {
          title: $t('redis.two'),
        },
        name: 'Machinery',
        path: 'machinery',
        component: () => import('#/views/mes/dv/machinery/index.vue'),
      },
      {
        meta: {
          title: $t('redis.three'),
        },
        name: 'Dvsubject',
        path: 'dvsubject',
        component: () => import('#/views/mes/dv/dvsubject/index.vue'),
      },
      {
        meta: {
          title: $t('redis.four'),
        },
        name: 'Checkplan',
        path: 'checkplan',
        component: () => import('#/views/mes/dv/checkplan/index.vue'),
      },
      {
        meta: {
          title: $t('redis.five'),
        },
        name: 'Repair',
        path: 'repair',
        component: () => import('#/views/mes/dv/repair/index.vue'),
      },
    ],
  },
];
